import request from "@/utils/request";

//获取车辆分页数据
export const getCarListApi = (params) => {
  return request({
    method: "GET",
    url: "/truckType/page",
    params,
  });
};

//删除车辆
export const delCarApi = (id) => {
  return request({
    method: "DELETE",
    url: `/del/${id}`,
  });
};

//回车登记列表
export const getReturnRegisterApi = (data) => {
  return request({
    method: "POST",
    url: "/truck-return-register/pageQuery",
    data,
  });
};
//回车登记查询
export const getCarRegisterInfoApi = (id) => {
  return request({
    method: "GET",
    url: `/truck-return-register/detail/${id}`,
  });
};

export const getCarsListApi = (params) => {
  return request({
    url: "/truck/page",
    method: "GET",
    params,
  });
};
